import java.util.List;

public class problem7 {
    public static void main(String[] args) {
        Long divisors = 0L;
        Long counter = 1L;
        Long value = 1L;

        do {
            counter++;
            value += counter;
            divisors = counter * (counter + 1) / 2;
            System.out.println(value + " " + divisors);
        } while (divisors <= 500);
        System.out.println(value);
    }
}

